package cn.hadron.ssh.service.impl;
import java.util.List;

import cn.hadron.ssh.bean.Channel;
import cn.hadron.ssh.dao.ChannelDao;
import cn.hadron.ssh.service.ChannelService;
public class ChannelServiceImpl implements ChannelService{
	private ChannelDao cdao;

	@Override
	public void addChannel(Channel c) {  
        cdao.add(c);  
    } 
	@Override
	public Channel findChannel(Integer id){
    	return cdao.load(id);
    }
	@Override
	public List<Channel> findAllChannel(){
		return cdao.findAll();
    }

	
	public ChannelDao getCdao() {
		return cdao;
	}
	//Setter注入
	public void setCdao(ChannelDao cdao) {
		this.cdao = cdao;
	}
}
